libxl: fix memory leak in libxl_list_vcpu
authorDario Faggioli <dario.faggioli@citrix.com>
Sat, 7 Dec 2013 00:04:48 +0000 (01:04 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 9 Dec 2013 15:19:51 +0000 (15:19 +0000)
commit2217a4318ff156ad86c377fc0f13f0fc6406123e
tree3dc5eb7cbe96ab59d517f7514bea76f21c19fc1d
parentc42fa088ec5deb9de3263ef6b7e3115f75e919e9
libxl: fix memory leak in libxl_list_vcpu

more specifically, of the cpumap inside libxl_vcpuinfo, in case
of failure after it has been allocated.

While at it, use the correct libxl memory allocation wrapper for
calloc() in there and turn the function into using the new LOGE()
logging style.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.c